package com.lezheba.db.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
 
@Entity
@Table(name="category")
public class Category implements Serializable{
 
    private static final long serialVersionUID = -8767337896773261247L;
    
    
    @Id 
    @Column(name="id")    
    @GeneratedValue(strategy=GenerationType.AUTO) 
    private Long id;
    
    
    @Column(name="name")
    private String name;
    
    
   
	
	public Long getId() {
		return id;
	}




	public void setId(Long id) {
		this.id = id;
	}




	public String getName() {
		return name;
	}




	public void setName(String name) {
		this.name = name;
	}




	public String toString(){
		StringBuffer sBuffer = new StringBuffer();
		sBuffer.append("{id:").append(this.id).append("}");
		sBuffer.append(", {name:").append(this.name).append("}");
		return sBuffer.toString();
	}
    
    
}
